Repository navigation
New purple 2x ship; doubles points - #14
Merged
Merged
Conversation
Co-authored-by: DanielGeek <DanielGeek@users.noreply.github.com>
Closed
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Done. The new AMETHYST ship (6th skin, cycled via
S) is purple, twice the size of the original, and doubles all points while active.Changes in
89-OpenCode-Projects/03-asteroids:game.js:369— newAMETHYSTskin: purple#a6fstroke/fill/flame, CLASSIC hull withscale: 2andscoreMultiplier: 2game.js:444—Ship.radiusis now a getter following the skin's scale, so the 2× ship also has a 2× hitbox (the trade-off for double points) and it updates live when skins are switched mid-gamegame.js:478— bullet spawn nose offset scales with the skin (42px instead of 21px)game.js:493-499—Ship.drawapplies the skin's scale transform (stroke width compensated; flame and shield bubble scale proportionally); life icons stay uniformgame.js:704— scoring multiplies by the active skin'sscoreMultiplier(asteroids and shooting stars alike)AGENTS.md/README.md— docs updated for the new skin, scale/multiplier semantics, and doubled score valuesVerified with
node --checkplus a stubbed-DOM smoke test (/tmp/opencode/amethyst-smoke.js, 21 assertions, all passing) covering: skin load/persist vialocalStorage, 24 vs 12 hitbox, 42 vs 21 nose, 100→200 scoring, the 2× draw transform and toast, and live hitbox resize on skin change.Closes #13
github run